﻿using System;
using TypeBuilderFx.Core.Emitters;

namespace Simp.CodeModel
{
	/// <summary>Represents a binding of a parameter to a <c>value</c> (a <see cref="IFunction"/>).</summary>
	public interface IFunctionParameterBinding
	{
		/// <summary>Name of the parameter to bind.</summary>
		[ReferenceTypeValidation(ReferenceTypeValidationLevel.AllowAll)]
		string Name { get; }

		/// <summary>Value to bind on the parameter.</summary>
		IFunction Value { get; }
	}
}